<button class="btn btn-default no-print" id="print_btn" type="submit" onclick="print_w()">打印</button>
<div class="print">
    {volist name="list" id="vo"}
    <div class="col-xs-12  col-sm-12 table-boder">
        <div class="col-xs-4 col-sm-4 qrcod_data">
            <input type="hidden" class="qrcode_txt" value="{$vo.qrcode}">
<!--            <img  style="height:220px;width:220px;margin-left: -10px;" src="{$vo.qrcode}" width="220" height="220"/>-->
            <div class="qrcode"></div>
        </div>
        <div  class="col-xs-7 col-sm-7 col-sm-offset-1 limt">
            <div class="col-xs-12 col-sm-12" style="margin-top:25px">仓库名称：{$vo.houseName}</div>
            <div class="col-xs-12 col-sm-12 textborder">{$vo.name}</div>
            <div class="col-xs-12 col-sm-12">编码：{$vo.number}</div>
        </div>
    </div>
    {if condition="$i neq count($list)"}
    <div class="pagebreak"></div>
    {/if}
    {/volist}
</div>
<script>
  function print_w(){
      var div=document.getElementById('print_btn');
      div.style.cssText="display:none"
      div.style.cssText="display:inline"
         window.print();
  }

</script>
<style>
    .textborder{
      
    }
    .qrcode{
        width: 150px;
        height: 220px;
        display: table-cell;
        vertical-align: middle;
    }
    .limt{
       display: flex;
       height: 190px;
       flex-direction: column;
       justify-content: space-between;
    }
    .print{
        width: 500px;
        height: 120px;
        margin-left: -5px;
    }
    .table-boder{
        margin-top: 20px;
        font-size: 18px;
        border: 1px solid black;
    }
    .table-right{
        border-left: 1px solid black;
    }
    .table-left{
        border-top: 1px solid black;
        height:220px;
        margin-top: 20px;
        page-break-after: always;
    }
    @page{
        size:auto;
        margin:0mm
    }
    @media print {
        .pagebreak {
            clear: both;
            page-break-after: always;
        }
    }
</style>

